{extend name="../front" /}
{block name="main"}
<main class="container">
  <div class="card card-types">
    <div class="card-body">
      <h2 class="card-title">{:config('page.types_title')}</h2>
      <p class="card-text text-muted small">{:config('page.types_description')}</p>
      <dl class="mb-0">
        {volist name="data" id="item"}
        <dt class="mb-2"><a href="{:xfUrlType($item)}" title="{$item.type_name}">{$item.type_name}</a></dt>
        {if $item._child}
          {foreach name="item._child" id="child"}
          <dd class="text-truncate">- <a class="text-muted" href="{:xfUrlType($child)}" title="{$child.type_name}">{$child.type_name}</a></dd>
          {/foreach}
        {else/}
          <dd class="text-muted small">{$item.type_excerpt|default='未添加分类说明'}</dd>
        {/if}
      {/volist}</dl>
    </div>
  </div>
</main>
{/block}